<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Document</title>
</head>
<body>
<a href="login.html" >返回</a>
<script>
    var requst =new XMLHttpRequest();
    request.open("GET", "http://localhost:8080/doc.html", true);
    requst.onreadystatechange = function() {
        console.log(requst.readyState);
        if(requst.readyState==4) {
            if (requst.status === 200) {
                console.log('Response: ' + requst.responseText);
            }
        }
    }
</script>
</body>
</html>